﻿
window.jQueryClockApp = window.jQueryClockApp || (function (app) {

    app.run = function (containerId) {

        setInterval(function () {
            var dateTime = new Date().format("M/dd/yy h:mm:ss tt");
            jQuery("#" + containerId).html(dateTime);
        }, 1000);
    };

    return app;

})({});


SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs("spdevlab.jquery.clock.demo.js");